QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    com_api/com_api.c \
    com_api/filelist.c \
    com_api/list.c \
    com_api/msg_queue.c \
    main.cpp \
    os_adapt/os_mutex.c \
    os_adapt/os_task.c \
    os_adapt/os_time.c \
    widget.cpp

HEADERS += \
    com_api/com_api.h \
    com_api/filelist.h \
    com_api/list.h \
    com_api/msg_queue.h \
    inc/dirent.h \
    inc/sys_cfg.h \
    inc/sys_port.h \
    inc/sys_printk.h \
    library/lib_ffmpeg/include/libavcodec/ac3_parser.h \
    library/lib_ffmpeg/include/libavcodec/adts_parser.h \
    library/lib_ffmpeg/include/libavcodec/avcodec.h \
    library/lib_ffmpeg/include/libavcodec/avdct.h \
    library/lib_ffmpeg/include/libavcodec/avfft.h \
    library/lib_ffmpeg/include/libavcodec/bsf.h \
    library/lib_ffmpeg/include/libavcodec/codec.h \
    library/lib_ffmpeg/include/libavcodec/codec_desc.h \
    library/lib_ffmpeg/include/libavcodec/codec_id.h \
    library/lib_ffmpeg/include/libavcodec/codec_par.h \
    library/lib_ffmpeg/include/libavcodec/d3d11va.h \
    library/lib_ffmpeg/include/libavcodec/defs.h \
    library/lib_ffmpeg/include/libavcodec/dirac.h \
    library/lib_ffmpeg/include/libavcodec/dv_profile.h \
    library/lib_ffmpeg/include/libavcodec/dxva2.h \
    library/lib_ffmpeg/include/libavcodec/jni.h \
    library/lib_ffmpeg/include/libavcodec/mediacodec.h \
    library/lib_ffmpeg/include/libavcodec/packet.h \
    library/lib_ffmpeg/include/libavcodec/qsv.h \
    library/lib_ffmpeg/include/libavcodec/vdpau.h \
    library/lib_ffmpeg/include/libavcodec/version.h \
    library/lib_ffmpeg/include/libavcodec/version_major.h \
    library/lib_ffmpeg/include/libavcodec/videotoolbox.h \
    library/lib_ffmpeg/include/libavcodec/vorbis_parser.h \
    library/lib_ffmpeg/include/libavdevice/avdevice.h \
    library/lib_ffmpeg/include/libavdevice/version.h \
    library/lib_ffmpeg/include/libavdevice/version_major.h \
    library/lib_ffmpeg/include/libavfilter/avfilter.h \
    library/lib_ffmpeg/include/libavfilter/buffersink.h \
    library/lib_ffmpeg/include/libavfilter/buffersrc.h \
    library/lib_ffmpeg/include/libavfilter/version.h \
    library/lib_ffmpeg/include/libavfilter/version_major.h \
    library/lib_ffmpeg/include/libavformat/avformat.h \
    library/lib_ffmpeg/include/libavformat/avio.h \
    library/lib_ffmpeg/include/libavformat/version.h \
    library/lib_ffmpeg/include/libavformat/version_major.h \
    library/lib_ffmpeg/include/libavutil/adler32.h \
    library/lib_ffmpeg/include/libavutil/aes.h \
    library/lib_ffmpeg/include/libavutil/aes_ctr.h \
    library/lib_ffmpeg/include/libavutil/ambient_viewing_environment.h \
    library/lib_ffmpeg/include/libavutil/attributes.h \
    library/lib_ffmpeg/include/libavutil/audio_fifo.h \
    library/lib_ffmpeg/include/libavutil/avassert.h \
    library/lib_ffmpeg/include/libavutil/avconfig.h \
    library/lib_ffmpeg/include/libavutil/avstring.h \
    library/lib_ffmpeg/include/libavutil/avutil.h \
    library/lib_ffmpeg/include/libavutil/base64.h \
    library/lib_ffmpeg/include/libavutil/blowfish.h \
    library/lib_ffmpeg/include/libavutil/bprint.h \
    library/lib_ffmpeg/include/libavutil/bswap.h \
    library/lib_ffmpeg/include/libavutil/buffer.h \
    library/lib_ffmpeg/include/libavutil/camellia.h \
    library/lib_ffmpeg/include/libavutil/cast5.h \
    library/lib_ffmpeg/include/libavutil/channel_layout.h \
    library/lib_ffmpeg/include/libavutil/common.h \
    library/lib_ffmpeg/include/libavutil/cpu.h \
    library/lib_ffmpeg/include/libavutil/crc.h \
    library/lib_ffmpeg/include/libavutil/csp.h \
    library/lib_ffmpeg/include/libavutil/des.h \
    library/lib_ffmpeg/include/libavutil/detection_bbox.h \
    library/lib_ffmpeg/include/libavutil/dict.h \
    library/lib_ffmpeg/include/libavutil/display.h \
    library/lib_ffmpeg/include/libavutil/dovi_meta.h \
    library/lib_ffmpeg/include/libavutil/downmix_info.h \
    library/lib_ffmpeg/include/libavutil/encryption_info.h \
    library/lib_ffmpeg/include/libavutil/error.h \
    library/lib_ffmpeg/include/libavutil/eval.h \
    library/lib_ffmpeg/include/libavutil/executor.h \
    library/lib_ffmpeg/include/libavutil/ffversion.h \
    library/lib_ffmpeg/include/libavutil/fifo.h \
    library/lib_ffmpeg/include/libavutil/file.h \
    library/lib_ffmpeg/include/libavutil/film_grain_params.h \
    library/lib_ffmpeg/include/libavutil/frame.h \
    library/lib_ffmpeg/include/libavutil/hash.h \
    library/lib_ffmpeg/include/libavutil/hdr_dynamic_metadata.h \
    library/lib_ffmpeg/include/libavutil/hdr_dynamic_vivid_metadata.h \
    library/lib_ffmpeg/include/libavutil/hmac.h \
    library/lib_ffmpeg/include/libavutil/hwcontext.h \
    library/lib_ffmpeg/include/libavutil/hwcontext_cuda.h \
    library/lib_ffmpeg/include/libavutil/hwcontext_d3d11va.h \
    library/lib_ffmpeg/include/libavutil/hwcontext_d3d12va.h \
    library/lib_ffmpeg/include/libavutil/hwcontext_drm.h \
    library/lib_ffmpeg/include/libavutil/hwcontext_dxva2.h \
    library/lib_ffmpeg/include/libavutil/hwcontext_mediacodec.h \
    library/lib_ffmpeg/include/libavutil/hwcontext_opencl.h \
    library/lib_ffmpeg/include/libavutil/hwcontext_qsv.h \
    library/lib_ffmpeg/include/libavutil/hwcontext_vaapi.h \
    library/lib_ffmpeg/include/libavutil/hwcontext_vdpau.h \
    library/lib_ffmpeg/include/libavutil/hwcontext_videotoolbox.h \
    library/lib_ffmpeg/include/libavutil/hwcontext_vulkan.h \
    library/lib_ffmpeg/include/libavutil/iamf.h \
    library/lib_ffmpeg/include/libavutil/imgutils.h \
    library/lib_ffmpeg/include/libavutil/intfloat.h \
    library/lib_ffmpeg/include/libavutil/intreadwrite.h \
    library/lib_ffmpeg/include/libavutil/lfg.h \
    library/lib_ffmpeg/include/libavutil/log.h \
    library/lib_ffmpeg/include/libavutil/lzo.h \
    library/lib_ffmpeg/include/libavutil/macros.h \
    library/lib_ffmpeg/include/libavutil/mastering_display_metadata.h \
    library/lib_ffmpeg/include/libavutil/mathematics.h \
    library/lib_ffmpeg/include/libavutil/md5.h \
    library/lib_ffmpeg/include/libavutil/mem.h \
    library/lib_ffmpeg/include/libavutil/motion_vector.h \
    library/lib_ffmpeg/include/libavutil/murmur3.h \
    library/lib_ffmpeg/include/libavutil/opt.h \
    library/lib_ffmpeg/include/libavutil/parseutils.h \
    library/lib_ffmpeg/include/libavutil/pixdesc.h \
    library/lib_ffmpeg/include/libavutil/pixelutils.h \
    library/lib_ffmpeg/include/libavutil/pixfmt.h \
    library/lib_ffmpeg/include/libavutil/random_seed.h \
    library/lib_ffmpeg/include/libavutil/rational.h \
    library/lib_ffmpeg/include/libavutil/rc4.h \
    library/lib_ffmpeg/include/libavutil/replaygain.h \
    library/lib_ffmpeg/include/libavutil/ripemd.h \
    library/lib_ffmpeg/include/libavutil/samplefmt.h \
    library/lib_ffmpeg/include/libavutil/sha.h \
    library/lib_ffmpeg/include/libavutil/sha512.h \
    library/lib_ffmpeg/include/libavutil/spherical.h \
    library/lib_ffmpeg/include/libavutil/stereo3d.h \
    library/lib_ffmpeg/include/libavutil/tea.h \
    library/lib_ffmpeg/include/libavutil/threadmessage.h \
    library/lib_ffmpeg/include/libavutil/time.h \
    library/lib_ffmpeg/include/libavutil/timecode.h \
    library/lib_ffmpeg/include/libavutil/timestamp.h \
    library/lib_ffmpeg/include/libavutil/tree.h \
    library/lib_ffmpeg/include/libavutil/twofish.h \
    library/lib_ffmpeg/include/libavutil/tx.h \
    library/lib_ffmpeg/include/libavutil/uuid.h \
    library/lib_ffmpeg/include/libavutil/version.h \
    library/lib_ffmpeg/include/libavutil/video_enc_params.h \
    library/lib_ffmpeg/include/libavutil/video_hint.h \
    library/lib_ffmpeg/include/libavutil/xtea.h \
    library/lib_ffmpeg/include/libpostproc/postprocess.h \
    library/lib_ffmpeg/include/libpostproc/version.h \
    library/lib_ffmpeg/include/libpostproc/version_major.h \
    library/lib_ffmpeg/include/libswresample/swresample.h \
    library/lib_ffmpeg/include/libswresample/version.h \
    library/lib_ffmpeg/include/libswresample/version_major.h \
    library/lib_ffmpeg/include/libswscale/swscale.h \
    library/lib_ffmpeg/include/libswscale/version.h \
    library/lib_ffmpeg/include/libswscale/version_major.h \
    os_adapt/os_mutex.h \
    os_adapt/os_task.h \
    os_adapt/os_time.h \
    widget.h

FORMS += \
    widget.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

INCLUDEPATH += ./inc/
INCLUDEPATH += ./com_api/
INCLUDEPATH += ./os_adapt/

INCLUDEPATH += ./library/lib_ffmpeg/include/

DISTFILES += \
    library/lib_ffmpeg/lib/x64/avcodec-61.def \
    library/lib_ffmpeg/lib/x64/avcodec-61.dll \
    library/lib_ffmpeg/lib/x64/avcodec.lib \
    library/lib_ffmpeg/lib/x64/avdevice-61.def \
    library/lib_ffmpeg/lib/x64/avdevice-61.dll \
    library/lib_ffmpeg/lib/x64/avdevice.lib \
    library/lib_ffmpeg/lib/x64/avfilter-10.def \
    library/lib_ffmpeg/lib/x64/avfilter-10.dll \
    library/lib_ffmpeg/lib/x64/avfilter.lib \
    library/lib_ffmpeg/lib/x64/avformat-61.def \
    library/lib_ffmpeg/lib/x64/avformat-61.dll \
    library/lib_ffmpeg/lib/x64/avformat.lib \
    library/lib_ffmpeg/lib/x64/avutil-59.def \
    library/lib_ffmpeg/lib/x64/avutil-59.dll \
    library/lib_ffmpeg/lib/x64/avutil.lib \
    library/lib_ffmpeg/lib/x64/ffmpeg.exe \
    library/lib_ffmpeg/lib/x64/ffplay.exe \
    library/lib_ffmpeg/lib/x64/ffprobe.exe \
    library/lib_ffmpeg/lib/x64/libavcodec.dll.a \
    library/lib_ffmpeg/lib/x64/libavdevice.dll.a \
    library/lib_ffmpeg/lib/x64/libavfilter.dll.a \
    library/lib_ffmpeg/lib/x64/libavformat.dll.a \
    library/lib_ffmpeg/lib/x64/libavutil.dll.a \
    library/lib_ffmpeg/lib/x64/libpostproc.dll.a \
    library/lib_ffmpeg/lib/x64/libswresample.dll.a \
    library/lib_ffmpeg/lib/x64/libswscale.dll.a \
    library/lib_ffmpeg/lib/x64/pkgconfig/libavcodec.pc \
    library/lib_ffmpeg/lib/x64/pkgconfig/libavdevice.pc \
    library/lib_ffmpeg/lib/x64/pkgconfig/libavfilter.pc \
    library/lib_ffmpeg/lib/x64/pkgconfig/libavformat.pc \
    library/lib_ffmpeg/lib/x64/pkgconfig/libavutil.pc \
    library/lib_ffmpeg/lib/x64/pkgconfig/libpostproc.pc \
    library/lib_ffmpeg/lib/x64/pkgconfig/libswresample.pc \
    library/lib_ffmpeg/lib/x64/pkgconfig/libswscale.pc \
    library/lib_ffmpeg/lib/x64/postproc-58.def \
    library/lib_ffmpeg/lib/x64/postproc-58.dll \
    library/lib_ffmpeg/lib/x64/postproc.lib \
    library/lib_ffmpeg/lib/x64/swresample-5.def \
    library/lib_ffmpeg/lib/x64/swresample-5.dll \
    library/lib_ffmpeg/lib/x64/swresample.lib \
    library/lib_ffmpeg/lib/x64/swscale-8.def \
    library/lib_ffmpeg/lib/x64/swscale-8.dll \
    library/lib_ffmpeg/lib/x64/swscale.lib \
    library/lib_ffmpeg/lib/x86/avcodec-61.def \
    library/lib_ffmpeg/lib/x86/avcodec-61.dll \
    library/lib_ffmpeg/lib/x86/avcodec.lib \
    library/lib_ffmpeg/lib/x86/avdevice-61.def \
    library/lib_ffmpeg/lib/x86/avdevice-61.dll \
    library/lib_ffmpeg/lib/x86/avdevice.lib \
    library/lib_ffmpeg/lib/x86/avfilter-10.def \
    library/lib_ffmpeg/lib/x86/avfilter-10.dll \
    library/lib_ffmpeg/lib/x86/avfilter.lib \
    library/lib_ffmpeg/lib/x86/avformat-61.def \
    library/lib_ffmpeg/lib/x86/avformat-61.dll \
    library/lib_ffmpeg/lib/x86/avformat.lib \
    library/lib_ffmpeg/lib/x86/avutil-59.def \
    library/lib_ffmpeg/lib/x86/avutil-59.dll \
    library/lib_ffmpeg/lib/x86/avutil.lib \
    library/lib_ffmpeg/lib/x86/ffmpeg.exe \
    library/lib_ffmpeg/lib/x86/ffplay.exe \
    library/lib_ffmpeg/lib/x86/ffprobe.exe \
    library/lib_ffmpeg/lib/x86/libavcodec.dll.a \
    library/lib_ffmpeg/lib/x86/libavdevice.dll.a \
    library/lib_ffmpeg/lib/x86/libavfilter.dll.a \
    library/lib_ffmpeg/lib/x86/libavformat.dll.a \
    library/lib_ffmpeg/lib/x86/libavutil.dll.a \
    library/lib_ffmpeg/lib/x86/libpostproc.dll.a \
    library/lib_ffmpeg/lib/x86/libswresample.dll.a \
    library/lib_ffmpeg/lib/x86/libswscale.dll.a \
    library/lib_ffmpeg/lib/x86/pkgconfig/libavcodec.pc \
    library/lib_ffmpeg/lib/x86/pkgconfig/libavdevice.pc \
    library/lib_ffmpeg/lib/x86/pkgconfig/libavfilter.pc \
    library/lib_ffmpeg/lib/x86/pkgconfig/libavformat.pc \
    library/lib_ffmpeg/lib/x86/pkgconfig/libavutil.pc \
    library/lib_ffmpeg/lib/x86/pkgconfig/libpostproc.pc \
    library/lib_ffmpeg/lib/x86/pkgconfig/libswresample.pc \
    library/lib_ffmpeg/lib/x86/pkgconfig/libswscale.pc \
    library/lib_ffmpeg/lib/x86/postproc-58.def \
    library/lib_ffmpeg/lib/x86/postproc-58.dll \
    library/lib_ffmpeg/lib/x86/postproc.lib \
    library/lib_ffmpeg/lib/x86/swresample-5.def \
    library/lib_ffmpeg/lib/x86/swresample-5.dll \
    library/lib_ffmpeg/lib/x86/swresample.lib \
    library/lib_ffmpeg/lib/x86/swscale-8.def \
    library/lib_ffmpeg/lib/x86/swscale-8.dll \
    library/lib_ffmpeg/lib/x86/swscale.lib



